﻿function getdelitemid(url) {
    
    
    var itemidlist='';
    var selected = $('input:checked');
    if(selected.length==0){
        alert('请选择要删除的商品');
        return;
    }
    var r = window.confirm('确定要删除吗？');
    if (r == false) return;
    for (var i = 0; i < selected.length; i++) {
        itemidlist = itemidlist+selected[i].name + (i == selected.length - 1 ? '' : '|');
    }
    window.location = url + '?itemidlist=' + itemidlist;   
}